<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo isset($admin_title)?$admin_title:"";?>-<?php echo isset($site_name)?$site_name:"";?></title>
<meta name="author" content="designer:webzhu, date:2012-03-23" />
<link type="image/x-icon" href="<?php echo urldecode(Url::urlFormat("@favicon.ico"));?>" rel="icon">
<link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("@static/css/base.css"));?>" />
<link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("@static/css/admin.css"));?>" />
<link rel="stylesheet" type="text/css" href="<?php echo urldecode(Url::urlFormat("@static/css/font_icon.css"));?>" />
<?php echo JS::import('jquery');?>
<script type="text/javascript" src="<?php echo urldecode(Url::urlFormat("@static/js/common.js"));?>"></script>
<!--[if lte IE 7]><script src="<?php echo urldecode(Url::urlFormat("@static/css/fonts/lte-ie7.js"));?>"></script><![endif]-->
</head>
<body >
<div id="header">
	<div class="nav_sub">
			    	您好[<?php echo isset($manager['name'])?$manager['name']:"";?>]&nbsp; | <a href="<?php echo urldecode(Url::urlFormat("/simple/login"));?>" target="_blank">返回前台</a> | <a href="<?php echo urldecode(Url::urlFormat("/admin/logout"));?>">退出</a>&nbsp; | &nbsp; <a id="btn_clear" href="javascript:;">清理缓存</a>
	</div>
    <div id="Logo"><a href=""><img src="<?php echo urldecode(Url::urlFormat("@static/images/logo_min.png"));?>"></a></div>
	<ul id="main_nav" class="clearfix">
	<?php foreach($mainMenu as $key => $item){?>
		<li <?php if($key==$menu_index['menu']){?>class="active"<?php }?>><a href="<?php echo urldecode(Url::urlFormat("$item[link]"));?>"  ><?php echo isset($item['name'])?$item['name']:"";?></a></li>
	<?php }?>
	</ul>
</div>
<div id="mainContent">
	<div id="sidebar" >
		<ul class="menu" style="margin-top:15px;">
		<?php foreach($subMenu as $key => $item){?>
			<li class="submenu">
			<ul><li class="sub-index"><b><a href="javascript:;"><?php echo isset($item['name'])?$item['name']:"";?></a></b></li>
			<?php foreach($menu->getNodes($item['link']) as $key => $item){?>
			<?php if(substr($item['link'],-5)!='_edit' && !$item['hidden'] ){?>
				<li><a href='<?php echo urldecode(Url::urlFormat("$item[link]"));?>' <?php if($item['link']==$nav_link){?>class="current"<?php }?> ><?php echo isset($item['name'])?$item['name']:"";?></a></li>
				<?php }?>
			<?php }?>
			</ul>
			</li>
		<?php }?>
		</ul>
	</div>
	<div id="content" >

		<?php if(!isset($msg)){?><?php $msg=Req::post('msg');?><?php }?>
		<?php if(!isset($validator)){?><?php $validator=Req::post('validator');?><?php }?>
		<?php if(isset($msg[0])){?>
		<div id="message-bar" class="message_<?php echo isset($msg[0])?$msg[0]:"";?>"><?php echo isset($msg[1])?$msg[1]:"";?></div>
		<?php }elseif(isset($validator)){?>
		<div class="message_warning"><?php echo isset($validator['msg'])?$validator['msg']:"";?></div>
		<?php }?>
		<?php echo JS::import('form');?>
<?php echo JS::import('editor');?>
<?php echo JS::import('dialog?skin=brief');?>
<?php echo JS::import('dialogtools');?>
<script>
    var editor;
    KindEditor.ready(function(K) {
      editor = K.create('textarea[name="content"],textarea[name="sale_protection"]', {
        uploadJson : '<?php echo urldecode(Url::urlFormat("/admin/upload_image"));?>'
      });
    });
</script>
  <div id="obj_form" class="form2 tab">
      <!-- tab 头 start -->
    <h1 class="page_title">我的店铺</h1>
    <form action="<?php echo urldecode(Url::urlFormat("/customer/customer_dp_edit"));?>" class=" " method="post" callback="check_tab_location"  enctype="multipart/form-data">
          <?php if(isset($id)){?>
          <input type="hidden" name="id" value="<?php echo isset($id)?$id:"";?>">
          <?php }?>
        <ul class="tab-head">
          <li>基本信息</li>
        </ul>
        <div class="tab-body">
          <div>
            <dl class="lineD">
              <dt>  店铺名称：</dt>
              <dd>
                <input  readonly type="text"  value="<?php echo isset($dp_info['dp_name'])?$dp_info['dp_name']:"";?>" style="width:400px;" >
                <label></label>
              </dd>
            </dl>
            <dl class="lineD">
              <dt>固定电话：</dt>
              <dd>
                <input   readonly  type="text"  value="<?php echo isset($dp_info['dp_tel'])?$dp_info['dp_tel']:"";?>" style="width:400px;">
                <label></label>
              </dd>
            </dl>
            <dl class="lineD clearfix">
              <dt>店铺图片：</dt>
              <dd class="min_inputs ">
                <img src="<?php echo isset($dp_info[dp_logo])?$dp_info[dp_logo]:"";?>"  style="width:200px;">
              </dd>
            </dl>
           </div>
          </div>

         <div class="tab-body">

   <h1 class="page_title">店铺编辑</h1>

           <!-- 基本信息 start -->
           <ul class="tab-head">
             <li>店铺信息</li>
           </ul>
         <div>
         <dl class="lineD">
             <dt>
              店铺名称：
             </dt>
          <dd>
            <input name="dp_name" type="text"  value="<?php echo isset($dp_info['dp_name'])?$dp_info['dp_name']:"";?>" style="width:400px;" >
            <label></label>
          </dd>
          </dl>
        <dl class="lineD">
          <dt>店铺电话：</dt>
          <dd>
            <input name="dp_tel" type="text" pattern = "(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$"  value="<?php echo isset($dp_info['dp_tel'])?$dp_info['dp_tel']:"";?>" style="width:400px;">
            <label></label>
          </dd>
        </dl>
        <dl class="lineD clearfix">
          <dt>店铺图片：</dt>
          <dd class="min_inputs ">

                 <input  value="<?php echo isset($dp_info['dp_logo'])?$dp_info['dp_logo']:"";?>"  type="file" name="dp_logo" >

          </dd>
        </dl>


    </div>
   </div>
<!-- tab 头 end -->
      <div style="text-align:center;margin-top:20px;">
        <input type="submit" class="focus_button" value="提交" >
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" value="重置" class="button">
      </div>
</form>
<script type="text/javascript">

</script>

	</div>
</div>
<script type="text/javascript">
	$(function () {
		if('<?php echo Req::args("con");?>'=='admin'){
			$(".submenu .current").parent().parent().parent().addClass('current');
		}else{
			$(".submenu").addClass('current');
		}
		$(".submenu .sub-index").on("click",function(){
			$(this).parent().parent().toggleClass('current');
		})
	})

</script>
</body>
</html>
<script>
	$("#btn_clear").on("click",function(){
		$.post("<?php echo urldecode(Url::urlFormat("/admin/clear_act"));?>",function(data){
			art.dialog.tips("<p class='"+data['status']+"'>"+data['msg']+"</p>");
		},'json');
	});
</script>
<!--Powered by TinyRise-->